{% extends "base.html" %} 

{% block head-title %}{{ algorithm.algorithm_name }}{% endblock %}

{% block title %}{{ algorithm.algorithm_name }} <a href="/static/pdf/{{ algorithm.algorithm_name }}.pdf" target="_blank" title="点击查看学习材料" class="uk-button uk-button-success uk-button-small">学习材料</a>{% endblock %}

{% block content %}
<script src="/static/js/clusterer/1.js"></script>
<form action="/clusterer/select_data_source/" method="post" enctype="multipart/form-data"
	class="uk-form" id="form1" onsubmit="return onForm1Submit();">
	{%csrf_token%}
	<input type="hidden" name="instance_id" value="{{ algorithm.instance_id }}"/>
	<fieldset>
		<legend>数据来源(1/3)</legend>
		<div class="uk-form-row">
			<select name="data_source_name" id="data_source_name">
				<option value="iris.xlsx">鸢尾花数据集</option>
				<option value="manual_upload">手工上传文件</option>
			</select>
		</div>
		<div class="uk-form-row" id="div_upload_file" style="display:none;">
			<div class="uk-form-file">
    			<button class="uk-button">选择Excel文件</button>
    			<input type="file" name="upload_file" id="upload_file">
    			<span id="span_file_name" style="color:#009E47"></span>
			</div>
		</div>
	</fieldset>
	<div class="uk-form-row" style="margin-top: 5px;">
		<input class="uk-button uk-button-primary" type="submit" value="下一步"
			style="float: right;">
	</div>
</form>
{% endblock %}
